package com.zsck.zsgy.ui.main.fragment.simplecircle

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import com.zsck.zsgy.base.BaseViewModel
import com.zsck.zsgy.ui.main.bean.SimpleCircleActivityBean
import com.zsck.zsgy.ui.main.bean.SimpleCircleListBean

class SimpleCircleViewModel : BaseViewModel(){

    private val repo by lazy { SimpleCircleRepo(viewModelScope, errorLiveData) }

    val simpleCircleActivityModel = MutableLiveData<SimpleCircleActivityBean>()
    val simpleCircleModel=MutableLiveData<SimpleCircleListBean>()


    fun simpleCircleList ( currentPage: Int,
                           simpleCircle: Int){

        repo.simpleCircleList(currentPage,simpleCircle,simpleCircleModel)

    }

    fun simpleCircleActivity( currentPage :Int,
                              keyword:String){
        repo.simpleCircleActivity(currentPage,keyword,simpleCircleActivityModel)
    }
}